//
//  FGDemoViewController.swift
//  微博
//
//  Created by 陈金田 on 16/12/30.
//  Copyright © 2016年 陈金田. All rights reserved.
//

import UIKit

class FGDemoViewController: FGBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        setupdUI()
        
    }
   
    
    func showNext(){
        let vc = FGDemoViewController()
        navigationController?.pushViewController(vc, animated: true)
        
    }
   
}



extension FGDemoViewController{
    
    override func setupdUI() {
        super.setupdUI()
        
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", style: .plain, target: self, action: #selector(showNext))
    }
    
}
